package com.yun.component;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;
import com.yun.utils.OkHttpUtil;

public class MachineSynchronizeComponent {

    
    public static HashMap<String, Object> makeMachineSynchronizeComponent(Map<String,Object> params,String url){
        Gson gson = new Gson();
        String result = OkHttpUtil.post(url, params);
        HashMap<String, Object> resultMap = new HashMap<>();
        if (result != "") {
            Map<String, Object> maps = new HashMap<String, Object>();
            resultMap = (HashMap<String, Object>) gson.fromJson(result, maps.getClass());
            return resultMap;
        }
        return null;
    }
    
}
